import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../components/main.vue'
import NotFund from '../components/NotFund.vue'
import BillList from '../components/bill/BillList.vue'
import ProviderList from '../components/provider/ProviderList.vue'

//显示使用路由
Vue.use(VueRouter)

// 到处路由
export default new VueRouter({
	mode:"history",
	// 配置路由
	routes: [
		/* 404页 */
		{
			path:"*",
			component:NotFund
		},
		/* 首页 */
		{
			path:"/smbms",
			component:Main,
		},
		/* 订单页面 */
		{
			path:"/smbms/bill/list",
			name:"BillList",
			component:BillList
		},
		/* 供应商页面 */
		{
			path:"/smbms/provider/list",
			name:"ProviderList",
			component:ProviderList
		}
		
	]
});